﻿<%@ Page Language="C#" AutoEventWireup="true"  Inherits="System.Web.UI.Page" ValidateRequest="false"  %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="FluentScheduler" %>



<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link href="../assets/layui/css/layui.css" rel="stylesheet" />
    <script src="../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
    <style type="text/css">
        body, html {
            padding: 0;
            margin-top: 0;
        }
        .file_item {
            width:150px;
            height:150px;
            margin-left:1px;
            margin-top:10px;
            border:2px solid #ffffff;
            float:left;
        }
        .file_item:hover {
            border:2px solid #ed6b75;
        }
        .select {
            border: 2px solid #ed6b75;
        }
        .tab-content {
            margin:50px 10px 0 10px;
        }
        .file_header {
            height:50px; 
            line-height:50px; 
            position:fixed; 
            top:0; 
            background:#ffffff; 
            width:100%;
        }
        .file_title {
            text-align: center;
            font-size: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: default;
            width: 90%;
            margin: 0 auto;
        }
    </style>
</head>
<body>

    <div class="file_header">
        <div style="margin-left:10px;">
            <button type="button" id="toHome" class="layui-btn layui-btn-primary layui-btn-sm action-home"><i class="layui-icon layui-icon-home" style="font-size: 13px !important;"></i>主页</button>
            <button type="button" id="upLevel" class="layui-btn layui-btn-primary layui-btn-sm action-up"><i class="layui-icon layui-icon-return" style="font-size: 13px !important;"></i>上一级</button>
            <button type="button" id="refresh" class="layui-btn layui-btn-primary layui-btn-sm action-refresh"><i class="layui-icon layui-icon-refresh" style="font-size: 13px !important;"></i>刷新</button>
            <button type="button" id="newFolder" class="layui-btn layui-btn-primary layui-btn-sm action-newfolder"><i class="layui-icon layui-icon-add-1" style="font-size: 13px !important;"></i>新建文件夹</button>
            <button type="button" id="uploadFile" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon layui-icon-upload-drag" style="font-size: 13px !important;"></i>上传</button>
            <span style="color:#555">&nbsp;&nbsp;&nbsp;&nbsp;当前路径：</span><span class="curpath" style="color:#555"></span>
        </div>
    </div>

    <div class="tab-content">
        <%--<div class="file_item">
            <img src="/uploads/20190830043748_983831.jpg?width=150&height=132&bgcolor=FFFFFF" />
            <p class="file_title">文件名</p>
        </div>
        <div class="file_item">
            <div style="height:107px;width:150px;text-align:center;padding-top:25px;"><i class="layui-icon layui-icon-export" style="font-size:80px; color:#555555"></i></div>
            <p class="file_title">文件夹</p>
        </div>--%>
        <div style="clear:both;"></div>
    </div>
    
    
    <script src="../assets/layui/layui.all.js"></script>  

    <!-- 自己的插件Start -->
    <script src="../assets/custom/js/carroitplug.js" type="text/javascript"></script>
    <script src="../assets/custom/js/verify.js" type="text/javascript"></script>
    <script src="../assets/custom/js/upload.js" type="text/javascript"></script>
    <!-- 自己的插件End -->

    <script src="../assets/custom/js/custom.js" type="text/javascript"></script>
    <script src="../assets/custom/js/app.js" type="text/javascript"></script>
    
    <script type="text/javascript"> 
        var csrf_token = "<%=Evan.Common.CommFun.TokenGenerate(false)%>"; 
        window.ctrConfig = {
            FileRootPath: "<%=Evan.Common.CommFun.GetAppSetting("FileManagerPath")%>",
            FileAllowExtName: "<%=Evan.Common.CommFun.GetAppSetting("UploadType")%>",
        };
        var field = "<%=Evan.Common.CommFun.GetQueryString("field")%>";
        var fieldType = "<%=Evan.Common.CommFun.GetQueryString("fieldType")%>";
        var isMultiple = fieldType == "multipleimgupload" ? true : false;
        //console.log(field, fieldType);
        function getSelectList() {
            var selectList = $(".select");
            var array = new Array();
            $.each(selectList, function (i, e) {
                array.push($(e).attr("data-path"));
            });
            return array;
        }
        function noSelectTip(msg) {
            if (arguments.length == 0) {
                msg = "";
            }
            layer.msg(msg == '' ? '未选择任何文件' : msg);
        }
    </script>
    

    <script src="../assets/custom/js/filelist.js"></script>
    <script type="text/javascript">
        $(function () {
            //$("#toHome").on("click", function () {
            //});
            //$("#upLevel").on("click", function () {
            //});
            //$("#refresh").on("click", function () {
            //});
            //$("#newFolder").on("click", function () {
            //});

            
        });
    </script>
</body>

</html>